package com.example.downloadupload.appskeleton;

import com.vaadin.terminal.ThemeResource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.VerticalLayout;

/**
 * characteristics of an app when displayed
 */
public class ApplicationComponent extends VerticalLayout{
	
	public ApplicationComponent(String appPictureUrl){
		
		this.setHeight("75px");
		this.setWidth("300px");
		
		//add picture, note pictures have to be in custom theme
		Embedded em = new Embedded("", new ThemeResource(appPictureUrl));
		this.addComponent(em);
	}
}
